package cn.weakup;

/**
 * @author lixj
 * @date 2022/5/6
 * @desc
 */
public class OtherTest {
    public static void main(String[] args) {
        System.out.println((1 << 29) - 1);
        System.out.println(8>>2);

        System.out.println((-1 << 29) | ((1 << 29) - 1));
        System.out.println((-1 << 29) & ((1 << 29) - 1));
        // 声明二进制
        System.out.println(0b0101);
        // 八进制
        System.out.println(011);
        // 十六进制
        System.out.println(0xffff);

        int a = 2;

        System.out.println(a++);

        System.out.println(a);

        System.out.println(++a);

        for (int i = 0; i < 5; i++) {
            System.out.println("i == " + i);
            for (int j = 0; j < 5; j++) {
                System.out.println("j == " + j);
                if(j == 2){
                    break;
                }
            }
        }

        System.out.println(Long.MAX_VALUE >> 1);

        System.out.println(Integer.MAX_VALUE);

    }
}
